import request from '@/utils/request'

/** 业务 - 标的*/
//list
export const objectList = (search) => 
    request({
        url: '/op/product_object/get_product_object_list',
        method: 'get',
       	params: {
            pageSize: search.limit,
            keyWord: search.name,
            pageNo:search.currentPage

        } 

    })
//del
export const delObject = (code) => 
    request({
        url: '/op/product_object/delete_product_object',
        method: 'get',
        params: {
            code

        } 

    })
//detail

export const detailObject = (code) => 
    request({
        url: '/op/product_object/get_product_object',
        method: 'get',
        params: {
            code

        } 

    })


//投资人列表

export const listInvestor = (search,code) => 
    request({
        url: '/op/product_investor/get_product_investor_list',
        method: 'get',
       	params: {
            proCode:code,
            pageSize: search.limit,
            pageNo:search.currentPage
        } 
    })
//
export const delInvestor = (code) => 
    request({
        url: '/op/product_investor/delete_product_investor',
        method: 'get',
        params: {
            code
        } 
    })